/* stage2 constants for system versions v3.0 and above */

#if defined(USA)

#define FS_OPEN_FILE 0x0022929C
#define GSP_GET_HANDLE 0x0021C960
#define GSP_GET_INTERRUPTRECEIVER 0x001C805C
#define GSP_ENQUEUE_CMD 0x001C7BF4

#define FS_READ_FILE 0x002C4204
#define GSP_GX_CMD4 0x002E9390
#define GSP_FLUSH_DATA_CACHE 0x002E2950

#define SRV_SESSIONHANDLE 0x00374258
#define SRV_SEMAPHORE 0x00374248

#define THREAD8_EVENT_HANDLE 0x003C1308
#define THREAD8_OBJ 0x003C2658

#elif defined(EUR)

#define FS_OPEN_FILE 0x0022929C
#define GSP_GET_HANDLE 0x0021C960
#define GSP_GET_INTERRUPTRECEIVER 0x001C805C
#define GSP_ENQUEUE_CMD 0x001C7BF4

#define FS_READ_FILE 0x002C4374
#define GSP_GX_CMD4 0x002E9500
#define GSP_FLUSH_DATA_CACHE 0x002E2AC0

#define SRV_SESSIONHANDLE 0x00374258
#define SRV_SEMAPHORE 0x00374248

#define THREAD8_EVENT_HANDLE 0x003C1328
#define THREAD8_OBJ 0x003C2678

#elif defined(JPN)

#define FS_OPEN_FILE 0x0022929C
#define GSP_GET_HANDLE 0x0021C960
#define GSP_GET_INTERRUPTRECEIVER 0x001C805C
#define GSP_ENQUEUE_CMD 0x001C7BF4

#define FS_READ_FILE 0x002C40DC
#define GSP_GX_CMD4 0x002E9268
#define GSP_FLUSH_DATA_CACHE 0x002E2828

#define SRV_SESSIONHANDLE 0x00374258
#define SRV_SEMAPHORE 0x00374248

#define THREAD8_EVENT_HANDLE 0x003C12C8
#define THREAD8_OBJ 0x003C2618

#elif defined(KOR)

#define FS_OPEN_FILE 0x0022F094
#define GSP_GET_HANDLE 0x00223890
#define GSP_GET_INTERRUPTRECEIVER 0x00223880
#define GSP_ENQUEUE_CMD 0x0022109C

#define FS_READ_FILE 0x0010C83C
#define GSP_GX_CMD4 0x001318A0
#define GSP_FLUSH_DATA_CACHE 0x0012B728

#define SRV_SESSIONHANDLE 0x0038D1C4
#define SRV_SEMAPHORE 0x0038D1B4

#define THREAD8_EVENT_HANDLE 0x003D3CEC
#define THREAD8_OBJ 0x003D52A0

#elif defined(CHN)

#define FS_OPEN_FILE 0x0022F0D8
#define GSP_GET_HANDLE 0x002238D4
#define GSP_GET_INTERRUPTRECEIVER 0x002238C4
#define GSP_ENQUEUE_CMD 0x002210E0

#define FS_READ_FILE 0x0010C83C
#define GSP_GX_CMD4 0x001318A0
#define GSP_FLUSH_DATA_CACHE 0x0012B728

#define SRV_SESSIONHANDLE 0x0038D1C4
#define SRV_SEMAPHORE 0x0038D1B4

#define THREAD8_EVENT_HANDLE 0x003D3CEC
#define THREAD8_OBJ 0x003D52A0

#elif defined(TWN)

#define FS_OPEN_FILE 0x0022F0C4
#define GSP_GET_HANDLE 0x002238C0
#define GSP_GET_INTERRUPTRECEIVER 0x002238B0
#define GSP_ENQUEUE_CMD 0x002210CC

#define FS_READ_FILE 0x0010C86C
#define GSP_GX_CMD4 0x001318D0
#define GSP_FLUSH_DATA_CACHE 0x0012B758

#define SRV_SESSIONHANDLE 0x003891C4
#define SRV_SEMAPHORE 0x003891B4

#define THREAD8_EVENT_HANDLE 0x003CFD0C
#define THREAD8_OBJ 0x003D12C0

#else
#error "Region not supported for this system version range"
#endif
